import { api } from '@/utils/api';

import type { EasyObject } from './data'

/** 获取列表 POST /api/rule */
export async function listMenu(data: EasyObject) {
    return api('/api/auth/auth/all', data);
}

/** 更新 POST /api/rule */
export async function updateMenu(data: EasyObject) {
    return api('/api/auth/auth/update', data);
}

/** 新建 POST /api/rule */
export async function addMenu(data: EasyObject) {
    return api('/api/auth/auth/add', data);
}

export async function deleteMenu(data: EasyObject) {
    return api('/api/auth/auth/delete', data);
}
